<?

	function checksession() {
		session_start();

		if(!$_SESSION['logged'])
			header("location: index.php");
	}

?>